<!DOCTYPE html>
<html lang="">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  <title>记账系统</title>
  <!-- <script charset="utf-8" src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"></script>
    <script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=6DCBZ-MPMW2-SWCU2-C2L6Y-GMGXV-F4BUO"></script> -->
</head>

<body>
  <script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=14c8e261161f169aab768f1560d0f042">
  </script>
  <script>
    // 解决打包成App后，单击 手机返回键退出应用的bug。
    document.addEventListener('plusready', function (a) { //等待plus ready后再调用5+ API：
      //// 在这里调用5+ API
      var first = null
      plus.key.addEventListener('backbutton', function () { //监听返回键
        //首次按键，提示‘再按一次退出应用’
        if (!first) {
          first = new Date().getTime() //获取第一次点击的时间戳
          // console.log('再按一次退出应用');//用自定义toast提示最好
          // toast('双击返回键退出应用'); //调用自己写的吐丝提示 函数
          plus.nativeUI.toast("双击退出", {
            duration: 'short'
          }); //通过H5+ API 调用Android 上的toast 提示框
          setTimeout(function () {
            first = null
          }, 1000)
        } else {
          if (new Date().getTime() - first < 1000) { //获取第二次点击的时间戳, 两次之差 小于 1000ms 说明1s点击了两次,
            plus.runtime.quit() //退出应用
          }
        }
      }, false)
    })
  </script>
  <noscript>
    <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
      Please enable it to continue.</strong>
  </noscript>
  <div id="app"></div>
  <!-- built files will be auto injected -->
</body>

</html>